package com.foreveross.fetl.common.cfg.system;

import com.foreveross.fetl.common.cfg.ConfigContainer;
import com.foreveross.fetl.common.cfg.ConfigLocalLoader;
import com.foreveross.fetl.common.cfg.PropertiesConfigLocalLoader;

public class ReportProperties extends PropertiesConfigLocalLoader implements
		ConfigLocalLoader {
	public final static String REPORT_FILE="report.properties";

	@Override
	public String getFileName() {
		return REPORT_FILE;
	}
	
	public final static String PATH="path";
	public final static String ADDRESS="address";
	public final static String PORT="port";
	public final static String USERNAME="userName";
	public final static String PASSWORD="password";
	public final static String FILE_PATH="filePath";
	public final static String FILE_DAY="fileDay";
	
	public final static String HANGXIN_PATH="hangxin_path";
	public final static String HANGXIN_ADDRESS="hangxin_address";
	public final static String HANGXIN_PORT="hangxin_port";
	public final static String HANGXIN_USERNAME="hangxin_userName";
	public final static String HANGXIN_PASSWORD="hangxin_password";
	
	
	public static String getHangxinPath() {
		return ConfigContainer.getInstance().get(HANGXIN_PATH, REPORT_FILE);
	}
	public static String getHangxinAddress() {
		return ConfigContainer.getInstance().get(HANGXIN_ADDRESS, REPORT_FILE);
	}
	public static String getHangxinPort() {
		return ConfigContainer.getInstance().get(HANGXIN_PORT, REPORT_FILE);
	}
	public static String getHangxinUserName() {
		return ConfigContainer.getInstance().get(HANGXIN_USERNAME, REPORT_FILE);
	}
	public static String getHangxinPassword() {
		return ConfigContainer.getInstance().get(HANGXIN_PASSWORD, REPORT_FILE);
	}
	
	

	public static String getPath() {
		return ConfigContainer.getInstance().get(PATH, REPORT_FILE);
	}
	public static String getAddress() {
		return ConfigContainer.getInstance().get(ADDRESS, REPORT_FILE);
	}
	public static String getPort() {
		return ConfigContainer.getInstance().get(PORT, REPORT_FILE);
	}
	public static String getUserName() {
		return ConfigContainer.getInstance().get(USERNAME, REPORT_FILE);
	}
	public static String getPassword() {
		return ConfigContainer.getInstance().get(PASSWORD, REPORT_FILE);
	}
	public static String getFilePath(){
		return ConfigContainer.getInstance().get(FILE_PATH, REPORT_FILE);
	}
	public static String getFileDay(){
		return ConfigContainer.getInstance().get(FILE_DAY, REPORT_FILE);
	}
}
